package com.ruoyi.cms.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 biz_wp_posts
 * 
 * @author lorry
 * @date 2020-12-06
 */
public class WpPosts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long ID;

    /** 对应作者ID */
    @Excel(name = "对应作者ID")
    private Long postAuthor;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postDate;

    /** 发布时间（GMT+0时间） */
    @Excel(name = "发布时间", readConverterExp = "G=MT+0时间")
    private Date postDateGmt;

    /** 正文 */
    @Excel(name = "正文")
    private String postContent;

    /** 标题 */
    @Excel(name = "标题")
    private String postTitle;

    /** 摘录 */
    @Excel(name = "摘录")
    private String postExcerpt;

    /** 文章状态（publish/auto-draft/inherit等） */
    @Excel(name = "文章状态", readConverterExp = "p=ublish/auto-draft/inherit等")
    private String postStatus;

    /** 评论状态（open/closed） */
    @Excel(name = "评论状态", readConverterExp = "o=pen/closed")
    private String commentStatus;

    /** PING状态（open/closed） */
    @Excel(name = "PING状态", readConverterExp = "o=pen/closed")
    private String pingStatus;

    /** 文章密码 */
    @Excel(name = "文章密码")
    private String postPassword;

    /** 文章缩略名 */
    @Excel(name = "文章缩略名")
    private String postName;

    /** to_ping */
    @Excel(name = "to_ping")
    private String toPing;

    /** 已经PING过的链接 */
    @Excel(name = "已经PING过的链接")
    private String pinged;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postModified;

    /** 修改时间（GMT+0时间） */
    @Excel(name = "修改时间", readConverterExp = "G=MT+0时间")
    private Date postModifiedGmt;

    /** post_content_filtered */
    @Excel(name = "post_content_filtered")
    private String postContentFiltered;

    /** 父文章，主要用于PAGE */
    @Excel(name = "父文章，主要用于PAGE")
    private Long postParent;

    /** guid */
    @Excel(name = "guid")
    private String guid;

    /** 排序ID */
    @Excel(name = "排序ID")
    private Long menuOrder;

    /** 文章类型（post/page等） */
    @Excel(name = "文章类型", readConverterExp = "p=ost/page等")
    private String postType;

    /** MIME类型 */
    @Excel(name = "MIME类型")
    private String postMimeType;

    /** 评论总数 */
    @Excel(name = "评论总数")
    private Long commentCount;

    public void setID(Long ID) 
    {
        this.ID = ID;
    }

    public Long getID() 
    {
        return ID;
    }
    public void setPostAuthor(Long postAuthor) 
    {
        this.postAuthor = postAuthor;
    }

    public Long getPostAuthor() 
    {
        return postAuthor;
    }
    public void setPostDate(Date postDate) 
    {
        this.postDate = postDate;
    }

    public Date getPostDate() 
    {
        return postDate;
    }
    public void setPostDateGmt(Date postDateGmt) 
    {
        this.postDateGmt = postDateGmt;
    }

    public Date getPostDateGmt() 
    {
        return postDateGmt;
    }
    public void setPostContent(String postContent) 
    {
        this.postContent = postContent;
    }

    public String getPostContent() 
    {
        return postContent;
    }
    public void setPostTitle(String postTitle) 
    {
        this.postTitle = postTitle;
    }

    public String getPostTitle() 
    {
        return postTitle;
    }
    public void setPostExcerpt(String postExcerpt) 
    {
        this.postExcerpt = postExcerpt;
    }

    public String getPostExcerpt() 
    {
        return postExcerpt;
    }
    public void setPostStatus(String postStatus) 
    {
        this.postStatus = postStatus;
    }

    public String getPostStatus() 
    {
        return postStatus;
    }
    public void setCommentStatus(String commentStatus) 
    {
        this.commentStatus = commentStatus;
    }

    public String getCommentStatus() 
    {
        return commentStatus;
    }
    public void setPingStatus(String pingStatus) 
    {
        this.pingStatus = pingStatus;
    }

    public String getPingStatus() 
    {
        return pingStatus;
    }
    public void setPostPassword(String postPassword) 
    {
        this.postPassword = postPassword;
    }

    public String getPostPassword() 
    {
        return postPassword;
    }
    public void setPostName(String postName) 
    {
        this.postName = postName;
    }

    public String getPostName() 
    {
        return postName;
    }
    public void setToPing(String toPing) 
    {
        this.toPing = toPing;
    }

    public String getToPing() 
    {
        return toPing;
    }
    public void setPinged(String pinged) 
    {
        this.pinged = pinged;
    }

    public String getPinged() 
    {
        return pinged;
    }
    public void setPostModified(Date postModified) 
    {
        this.postModified = postModified;
    }

    public Date getPostModified() 
    {
        return postModified;
    }
    public void setPostModifiedGmt(Date postModifiedGmt) 
    {
        this.postModifiedGmt = postModifiedGmt;
    }

    public Date getPostModifiedGmt() 
    {
        return postModifiedGmt;
    }
    public void setPostContentFiltered(String postContentFiltered) 
    {
        this.postContentFiltered = postContentFiltered;
    }

    public String getPostContentFiltered() 
    {
        return postContentFiltered;
    }
    public void setPostParent(Long postParent) 
    {
        this.postParent = postParent;
    }

    public Long getPostParent() 
    {
        return postParent;
    }
    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setMenuOrder(Long menuOrder) 
    {
        this.menuOrder = menuOrder;
    }

    public Long getMenuOrder() 
    {
        return menuOrder;
    }
    public void setPostType(String postType) 
    {
        this.postType = postType;
    }

    public String getPostType() 
    {
        return postType;
    }
    public void setPostMimeType(String postMimeType) 
    {
        this.postMimeType = postMimeType;
    }

    public String getPostMimeType() 
    {
        return postMimeType;
    }
    public void setCommentCount(Long commentCount) 
    {
        this.commentCount = commentCount;
    }

    public Long getCommentCount() 
    {
        return commentCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("postAuthor", getPostAuthor())
            .append("postDate", getPostDate())
            .append("postDateGmt", getPostDateGmt())
            .append("postContent", getPostContent())
            .append("postTitle", getPostTitle())
            .append("postExcerpt", getPostExcerpt())
            .append("postStatus", getPostStatus())
            .append("commentStatus", getCommentStatus())
            .append("pingStatus", getPingStatus())
            .append("postPassword", getPostPassword())
            .append("postName", getPostName())
            .append("toPing", getToPing())
            .append("pinged", getPinged())
            .append("postModified", getPostModified())
            .append("postModifiedGmt", getPostModifiedGmt())
            .append("postContentFiltered", getPostContentFiltered())
            .append("postParent", getPostParent())
            .append("guid", getGuid())
            .append("menuOrder", getMenuOrder())
            .append("postType", getPostType())
            .append("postMimeType", getPostMimeType())
            .append("commentCount", getCommentCount())
            .toString();
    }
}
